<?php
/**
 * Created by PhpStorm.
 * User: Dave
 * Date: 2018/8/24
 * Time: 16:16
 */

use Biz\service\activity\MealInfo as sMealInfo;

/**
 * @deprecated
 */
class ReplaceMealListAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_NOTHING;

    public function main()
    {
        $mealId = $this->getRequest()->getQuery('meal_id');
        $group = $this->getRequest()->getQuery('group');
        $goodsId = $this->getRequest()->getQuery('goods_id');
        $skuId = $this->getRequest()->getQuery('sku_id');

        $data['list'] = sMealInfo::replaceMealList($mealId, $group, $goodsId, $skuId);

        $this->setSuccess($data);
    }
}